package com.lrs.java.j2se_self.ioReview;
import java.io.*;
public class TestBufferIO {
	public static void main(String[] args){
		try{
			BufferedWriter bw = new BufferedWriter(new FileWriter("C:\\test5.text"));
			BufferedReader br = new BufferedReader(new FileReader("C:\\test5.text"));
			String b =null;
			for(int i = 0; i<100 ; i++){
				String s = String.valueOf(Math.random());
				bw.write(s);
				bw.newLine();
			}
			bw.flush();
			while((b=br.readLine())!=null){
				System.out.println(b);
			}
			bw.close();
			br.close();
		}catch(IOException e){
			e.getMessage();
		}
	}
}
